package com.smart.campus.service;

import com.smart.campus.dto.SysUser;
import com.smart.campus.pojo.PagedResponse;

import java.util.List;

public interface SysUserService {
    public List<SysUser> findUserList(SysUser sysUser);

    public SysUser findSysUserByUserName(String username);

    PagedResponse<SysUser> pageUser(SysUser sysUser, Integer pageNum, Integer pageSize);

    void addUser(SysUser sysUser);

    void delUser(Long userId);

    SysUser findUserById(Long userId);

    void updateUser(SysUser sysUser);

    /**
     * 分页联查
     * @param sysUser
     * @param pageNum
     * @param pageSize
     * @return
     */
    PagedResponse<SysUser> findAll(SysUser sysUser, Integer pageNum, Integer pageSize);

    List<SysUser> getTeachersList();


    void updateStatus(SysUser sysUser);

    List<SysUser> getDetails(SysUser sysUser);
}
